<template>
  <div class="quality">
    <div class="head">精选好货</div>
    <van-row class="superior" :gutter="fontSize * 0.36">
      <van-col span="12">
        <div class="selling">
          <div class="title">热销排行</div>
          <div class="describe">热卖都在这里</div>
        </div>
      </van-col>
      <van-col span="12">
        <div class="technology">
          <div class="title">绝品工艺</div>
          <div class="describe">轻松带走</div>
        </div>
        <div class="choice">
          <div class="title">今日优选</div>
          <div class="describe">都是优品</div>
        </div>
      </van-col>
    </van-row>
  </div>
</template>

<script>
import { mapState } from "vuex";

export default {
  computed: {
    ...mapState(["fontSize"]),
  },
};
</script>

<style lang='less' scoped>
.quality {
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.48rem;
  background: rgba(255, 255, 255, 1);

  .head {
    padding-bottom: 0.48rem;
    font-size: 0.64rem;
    line-height: 0.84rem;
    font-family: STZhongsong;
    color: rgba(44, 42, 41, 1);
  }

  .superior {
    .title {
      padding: 0.32rem 0.48rem 0;
      font-size: 0.64rem;
      line-height: 0.88rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(44, 42, 41, 1);
    }

    .describe {
      padding: 0.16rem 0.48rem 0;
      font-size: 0.52rem;
      line-height: 0.72rem;
      font-family: PingFangSC-Light, PingFang SC;
      font-weight: 300;
      color: rgba(153, 153, 153, 1);
    }
  }

  .selling {
    height: 7.48rem;
    background: rgba(255, 255, 255, 1);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("../image/selling_bg.png");
    border-radius: 0.12rem;
    border: 1px solid rgba(247, 246, 250, 1);
  }

  .technology {
    height: 3.52rem;
    background: rgba(255, 255, 255, 1);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("../image/technology_bg.png");
    border-radius: 0.12rem;
    border: 1px solid rgba(247, 246, 250, 1);
  }

  .choice {
    margin-top: 0.36rem;
    height: 3.52rem;
    background: rgba(255, 255, 255, 1);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("../image/choice_bg.png");
    border-radius: 0.12rem;
    border: 1px solid rgba(247, 246, 250, 1);
  }
}
</style>
